tools: ocaml: remove non-posix-ism from sed script.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 16:52:02 +0000 (17:52 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 16:52:02 +0000 (17:52 +0100)
commit63cd6b046b65ac1fda203ea1ee62717011f17a6a
tree32cd3de58b1dfeccaaf7d2578239e3a333b82560
parent9932ce68c24cd6a2b30d2af11373340ed263326f
tools: ocaml: remove non-posix-ism from sed script.

Christoph Egger reported than on NetBSD the build fails with

Parsing tools/ocaml/libs/xl/../../../../tools/libxl/libxl.idl
sed: 1: "1i(*\
  * AUTO-GENERATED ...": command i expects \ followed by test
gmake[7]: Leaving directory `tools/ocaml/libs/xl'

The following was tested by Christoph on NetBSD and also with GNU-sed
with and without the --posix flag.

In addition when sed fails will still create the output file, which confuses
subsequent make invocations. Generate to a temporary file and move into place
only on success.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Christoph Egger <Christoph.Egger@amd.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ocaml/libs/xl/Makefile